package com.yzh.animal.teacher;

public class Dog extends Animal{
    private String nickName;//昵称


    public Dog(){

    }

    public Dog(String nickName,String color,int age){
        super(color,age);
        //this(color,age);
        this.nickName = nickName;
    }

    public void guard(){
        System.out.println("-------dog guarding.....--------");
    }
}
